<?php 

class sRulesErrors {
	
	private $rules_errors = array();
	
	public function __construct($rules_errors) {
		$this->rules_errors = $rules_errors;
	}
	
	public function render() {
		$r = '';
		foreach($this->rules_errors as $v) {
			$r .= '<div>'.htmlspecialchars($v, null, Mform::$encoding).'</div>';
		}
		return $r;
	}
}